
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from "@/store"

import uView from '@/uni_modules/uview-ui'
import callkButton from "@/components/call-button/call-button.vue"
Vue.use(uView)

require('utils/dateUtils.js')

Vue.config.productionTip = false

App.mpType = 'app'

// 将用到的方法挂载到vue原型上
Vue.prototype.$store = store;
// uni上也挂载一份
uni.$store = store;
Vue.component('call-button', callkButton)
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif